
public class ExtendsDemo09 {
    public static void main(String[] args) {
       C c = new C();
       c.a();
       c.b();

    }
}


class A extends Object {
    public void a() {
        System.out.println("哈哈");
    }

}

class B extends A {


    public void b() {
        System.out.println("呵呵");
    }
}

class C extends B {

}
